home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
etc
/
init.d
/
loopback
< prev
next >
Wrap
Text File
|
2008-06-21
|
748b
|
43 lines
#!/bin/sh -e
#
# loopback - brings up the loopback (127.0.0.1) network device so that
# DHCP and other such things will work
#
# Check the package is still installed
[ -x /sbin/ifup ] || exit 0
# Get LSB functions
. /lib/lsb/init-functions
. /etc/default/rcS
case "$1" in
start)
[ -d /var/run/network ] || mkdir /var/run/network
log_begin_msg "Starting basic networking..."
if ifup --allow auto lo; then
log_end_msg 0
else
log_end_msg $?
fi
;;
stop)
log_begin_msg "Stopping basic networking..."
if ifdown lo; then
log_end_msg 0
else
log_end_msg $?
fi
;;
restart|force-reload)
exit 0
;;
*)
echo "Usage: /etc/init.d/loopback {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0